// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using ValidationAspects;

namespace WpfStateValidation
{
	[DataErrorInfo]
	public class User
	{
		[NotNullOrEmpty]
		[NotEqual("none", true)]
		public string Username { get; set; }

		[IsEmail(IsStrict = true)]
		[NotNullOrEmpty]
		public string Email { get; set; }

		[InRange(1, 100)]
		public int Age { get; set; }
	}
}